package com.yubest.designpattern.create.factory.abstractfactory;

import com.yubest.designpattern.create.factory.bean.Dollar;
import com.yubest.designpattern.create.factory.bean.Food;
import com.yubest.designpattern.create.factory.bean.Money;
import com.yubest.designpattern.create.factory.bean.Product;

/**
 * 抽象工厂-实现1
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 11:52
 */
public class AmericanFactory extends AbstractFactory {
    @Override
    public Product buyProduct() {
        return new Food();
    }

    @Override
    public Money useMoney() {
        return new Dollar();
    }
}
